/**
 *  Shopro全局配置文件
 */
export function getBASE_URL(){
  // return `${window.location.protocol}//${document.domain}`
  return process.env.NODE_ENV === "production" ? `${window.location.protocol}//${document.domain}` : ""
}

// export BASE_URL //后台根域名
export const BASE_URL = getBASE_URL();

// 上传图片文件
export const uploadImg = getBASE_URL()+ '/admin/upload/oldupload';

// 上传图片文件,压缩
export const uploadZipImg = getBASE_URL()+ '/admin/pick_up/upload';

export const BASE_LINK = process.env.NODE_ENV === "production" ? "/" : "/";
